﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NoodlesCms.Configuration;
using Noodles.Core.Repositories;
using Noodles.Core.Model;

namespace NoodlesCms.Controllers
{
    public class MenuController : Controller
    {
        public INoodlesRepository noodlesRepo { get; set; }
        //
        // GET: /Menu/
         [ChildActionOnly]
        public ActionResult Index()
        {
            IEnumerable<Pages> pagelist = noodlesRepo.GetPages();            
            return PartialView(pagelist);
        }

    }
}
